package com.blogger.vehicle;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.blogger.vehicle.beans.Vehicle;

public class TestVehicle {

	public static void main(String[] args)
	{

		// ApplicationContext context = new ClassPathXmlApplicationContext(new String[] {"services.xml",
		// "daos.xml"});
		
		ApplicationContext context = new ClassPathXmlApplicationContext(
				"vehicle.xml");
		
		//getBean() to retrieve instances of car bean
		Vehicle car=(Vehicle) context.getBean("car");
		car.run();
	}
}
